The query returns false if the Controls panel is not visible, true if it is showing.Example. Hide the Controls palette with the PControlPalette command.
PGetControlPalette isVisible;
if (isVisible == true)
PControlPalette(false); // hide it
Comments or suggestions? Contact Adobe Developer Support